package cn.gzyinyuan.yy.modules.sys.service.impl;

import cn.gzyinyuan.yy.common.utils.Query;
import cn.gzyinyuan.yy.modules.sys.entity.SysDept;
import cn.gzyinyuan.yy.modules.sys.mapper.SysDeptMapper;
import cn.gzyinyuan.yy.modules.sys.service.SysDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author HJ
* @description 针对表【sys_dept(部门状态（0：禁用；1：启用）)】的数据库操作Service实现
* @createDate 2021-12-15 11:45:44
*/
@Service
public class SysDeptServiceImpl
   implements SysDeptService {

    @Autowired
    private SysDeptMapper sysDeptMapper;

    public List<SysDept> queryList(Query query) {
        return sysDeptMapper.queryList(query);
    }

    public int queryTotal(Query query) {
        return sysDeptMapper.queryTotal(query);
    }

    public void save(SysDept dept) {
        sysDeptMapper.save(dept);
    }

    public void deleteBatch(Long[] ids) {
        sysDeptMapper.deleteBatch(ids);
    }

    public SysDept queryObject(Long id) {
        return sysDeptMapper.queryObject(id);
    }

    public void update(SysDept dept) {
        sysDeptMapper.update(dept);
    }
}




